#ifndef SOUNDPLAYER_H
#define SOUNDPLAYER_H

#include <QString>
#include <QSound>
#include <QMap>
#include <QDir>

class SoundPlayer
{
public:
    static void playSound(QString name);
    static void loopSound(QString name, int times);
    static void stopSound(QString name);
    static void stopAllSounds();
    static bool isSoundPlaying(QString name);
    static void setResourceDirectory(QString path);

private:
    static QMap<QString, QSound*>* sounds;
};

#endif // SOUNDPLAYER_H
